#include<iostream>
using namespace std;

/*  //function pointer
    int func(int a);  // declare a function
    int (*f)(int a);  // declare a function pointer
    f = &func;
*/

int Mmin(int x, int y)
{
    if (x<y) return x;
    return y;
}

int Mmax(int x, int y)
{
    if (x>y) return x;
    return y;
}

int main(void)
{
    int a=10, b=20;
    int (*f)(int, int);

    f = Mmin;
    cout<<(*f)(a, b)<<endl;

    f = Mmax;
    cout<<(*f)(a, b)<<endl;

    return 0;
}